package com.hfjc.enums;

/**
 * 将code和message定义枚举，统一管理
 * @author zlq
 *
 */
public enum ResultEnum {
	UNKNOW_ERROR(-1,"未知错误"),
	PRICE_0_10(100,"价格小于10元"),
	PRICE_10_20(101,"价格大于10元小于20元"),
	SUCCESS(0,"成功");
	
	private String msg;
	
	private Integer code;
	
	
	
	ResultEnum(Integer code, String msg){
		this.code=code;
		this.msg=msg;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}

}
